<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<html>
<head>
<title></title>
<!-- 引入EasyUI的相关css和js文件 -->
<link href="EasyUI/themes/default/easyui.css" rel="stylesheet"
	type="text/css" />
<link href="EasyUI/themes/icon.css" rel="stylesheet" type="text/css" />
<link href="EasyUI/demo.css" rel="stylesheet" type="text/css" />
<script src="EasyUI/jquery.min.js" type="text/javascript"></script>
<script src="EasyUI/jquery.easyui.min.js" type="text/javascript"></script>
<script src="EasyUI/easyui-lang-zh_CN.js" type="text/javascript"></script>
</head>
<body>
	<table id="dg_medicine" class="easyui-datagrid"></table>
	<div id="divPrescriptionInfo">
		<form id="ff_addprescriptionFrom" method="post">
			<div style="margin-bottom: 20px">
				<input class="easyui-textbox" name="diagnosticcard"
					id="diagnosticcard" value="${sessionScope.prescription.diagnosticcard}" style="width: 40%" data-options="label:'诊疗卡号:'">
					
				--------- <input class="easyui-textbox" name="sex" id="sex"
					style="width: 40%" value="${sessionScope.prescription.sex}" data-options="label:'性别:'">
			</div>
			<div style="margin-bottom: 20px">
				<input class="easyui-textbox" name="medicalrecord"
					id="medicalrecord" value="${sessionScope.prescription.medicalrecord}" style="width: 40%" data-options="label:'病案号:'">
				--------- <input class="easyui-textbox" name="patientname"
					id="patientname" value="${sessionScope.prescription.patientname}" style="width: 40%" data-options="label:'病人姓名:'">
			</div>
			<div style="margin-bottom: 20px">
				<input class="easyui-textbox" name="age" id="age" style="width: 40%"
					value="${sessionScope.prescription.age}" data-options="label:'年龄:'"> --------- <input
					class="easyui-textbox" name="phone" id="phone" style="width: 40%"
					value="${sessionScope.prescription.phone}" data-options="label:'手机号码:'">
			</div>
			<div style="margin-bottom: 20px">
				<input class="easyui-textbox" name="doctorname" id="doctorname"
					style="width: 40%" value="${sessionScope.prescription.doctorname}" data-options="label:'医生姓名:'"> ---------
				<input class="easyui-textbox" name="department" id="department"
					style="width: 40%" value="'${sessionScope.prescription.department}'" data-options="label:'科室:'">
			</div>
			<div style="margin-bottom: 20px">
				<input class="easyui-textbox" name="pastmedicalhistory"
					id="pastmedicalhistory" style="width: 40%; height: 60px"
					value="${sessionScope.prescription.pastmedicalhistory}" data-options="label:'既往病史:',multiline:true"> --------- <input
					class="easyui-datebox" label="就诊日期:" name="prescriptiontime"
					id="prescriptiontime" style="width: 35%;" value="${sessionScope.prescription.prescriptiontime}">
			</div>
			<div style="margin-bottom: 20px">
				<input class="easyui-textbox" name="diagnosis" id="diagnosis"
					style="width: 80%; height: 60px"
					value="${sessionScope.prescription.diagnosis}" data-options="label:'诊断:',multiline:true">
			</div>
		</form>
	</div>
	<script type="text/javascript">
	$(function() {					
		$('#dg_medicine').datagrid({
			queryParams: {
				medicalrecord : '${sessionScope.prescription.medicalrecord}',
			},
			url : 'medicine/queryByMedicalrecord/', 
			rownumbers : true,
			singleSelect : false,
			fit : true,
			//toolbar : '#tb_medicine',
			header : '#divPrescriptionInfo',
			columns : [ [ {
				title : '序号',
				field : 'no',
				align : 'center',
				checkbox : true
			}, {
				field : 'drugno',
				title : '用药编号',
				width : 100,

			},{
				field : 'drugname',
				title : '用药名称',
				width : 100,

			}, {
				field : 'drugprice',
				title : '单价',
				width : 80,

			}, {
				field : 'drugspecification',
				title : '规格',
				width : 80,

			}, {
				field : 'unit',
				title : '用药数量',
				width : 100,

			},{
				field : 'dose',
				title : '剂量',
				width : 80,

			}, {
				field : 'usage',
				title : '每天用药次数',
				width : 80,

			}, {
				field : 'days',
				title : '用药天数',
				width : 80,

			}, {
				field : 'medicineremark',
				title : '备注',
				width : 80,

			} ] ]
		});
		//$('#1').linkbutton('disable'); 		
	});
	
	
	</script>
</body>
</html>